Open file with java application [migrated]
Posted
by
Giaphage47
on Game Development
See other posts from Game Development
or by Giaphage47
Published on 2014-08-22T01:17:15Z
Indexed on
2014/08/22
4:28 UTC
Read the original article
Hit count: 213
I am using Ubuntu. I would like to have a user be able to double-click (or whatever they have set to open a file) on the save file for a java game i'm making, and have the game start and automatically load the save. How could I make the game launch instead of opening the file, and then pass the save's file name or location as an argument? Would i have to have the game create a new mime type the first time it ran, or something similar, so that Ubuntu knows what to do with the save when the user tries to open it?
© Game Development or respective owner